export default {
    namespace: "city",// 命名空间， 不写默认是文件名
    state: {
        cityName: "北京",
        cityId: "110100"
    },
    reducers: {
        changeCity(preStates: any, action: any) {
            console.log("CityModel 的 changeCity preStates:", preStates)
            console.log("CityModel 的 changeCity action:", action)
            return {
                ...preStates,
                cityName: action.payload.cityName,
                cityId: action.payload.cityId
            }
        }
    }

}